<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div id="app" class="className className" mySelf='mashaod'>
    
  </div>
  <script>
    const appDom = document.getElementById('app');
    const textDom = document.createTextNode('222');
    console.log(textDom)
    appDom.appendChild(textDom)


    // 文档碎片
    const fragment = document.createDocumentFragment();
    fragment.appendChild(document.createElement('div'))
    console.log(fragment)
  </script>
</body>

</html>